package com.chenyongjing.design.pattern.interpreter.calculate;

/**
 * 除法
 * @Author chen
 * @Date 2022/11/27 16:18
 */
public class DivInterpreter extends Interpreter{
    public DivInterpreter(IArithmeticInterpreter left, IArithmeticInterpreter right) {
        super(left, right);
    }

    public int interpret(){
        return this.left.interpret()/this.right.interpret();
    }
}
